using UnityEngine;

public class PanelFly : MonoBehaviour
{
    // Start is called once before the first execution of Update after the MonoBehaviour is created
    public Vector2 awayPos;
    RectTransform rt;
    void Start()
    {
        rt=GetComponent<RectTransform>();
    }
    public void FlyAway()
    {
        print("fly");
        rt.anchoredPosition=awayPos;
    }
    public void FlyBack()
    {
        rt.anchoredPosition=Vector2.zero;
    }
    // Update is called once per frame
    void Update()
    {
        
    }
}
